﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TimeTabling.Core;
using TimeTabling.Application;
using System.Configuration;
using TimeTabling.Core.Contracts;

namespace TimeTabling.Web
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Center center = new Center();
            center.Name = "Seas";
            center.Address = "Violeta Parra";

            ICenterService centerService = new CenterService(
                ConfigurationManager.ConnectionStrings["TimeTablingData"].ToString());

            centerService.AddCenter(center);

            Center center1 = centerService.GetCenter(center.Id);
        }
    }
}
